import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/cloudcut-api/publish/video-task-list',
    method: 'get',
    params
  })
}
export function getWordList(params) {
  return request({
    url: '/cloudcut-api/publish/word-list',
    method: 'get',
    params
  })
}
export function delTask(params) {
  return request({
    url: '/cloudcut-api/publish/video-task-delete',
    method: 'delete',
    params
  })
}
export function addTask(data) {
  return request({
    url: '/cloudcut-api/publish/video-task-add',
    method: 'post',
    data
  })
}
export function updateTask(data) {
  return request({
    url: '/cloudcut-api/publish/video-task-edit',
    method: 'post',
    data
  })
}
export function copyTask(params) {
  return request({
    url: '/cloudcut-api/publish/video-task-copy',
    method: 'post',
    params
  })
}
export function toggleStatus(data) {
  return request({
    url: '/cloudcut-api/publish/video-task-enable',
    method: 'post',
    data,
    params: data
  })
}
export function getDetail(data) {
  return request({
    url: '/cloudcut-api/publish/video-task-queryById',
    method: 'get',
    params: data
  })
}

export function getDict(dictCode = '') {
  return request({
    url: '/cloudcut-api/sys/api/getDictItems',
    method: 'get',
    params: {
      dictCode
    }
  })
}
export function transPoi(params) {
  return request({
    url: '/cloudcut-api/publish/poi-parse',
    method: 'get',
    params
  })
}
export function bZone(params) {
  return request({
    url: '/cloudcut-api/publish/bilibili-zone-list',
    method: 'get',
    params
  })
}
export function updateLdy(data) {
  return request({
    url: '/cloudcut-api/publish/landPage-edit',
    method: 'post',
    data
  })
}
export function addLdy(data) {
  return request({
    url: '/cloudcut-api/publish/landPage-add',
    method: 'post',
    data
  })
}
export function delLdy(data) {
  return request({
    url: '/cloudcut-api/publish/landPage-delete',
    method: 'delete',
    params: data
  })
}
export function getLdyList(params) {
  return request({
    url: '/cloudcut-api/publish/landPage-list',
    method: 'get',
    params
  })
}
export function getLdyDetail(params) {
  return request({
    url: '/cloudcut-api/publish/landPage-queryById',
    method: 'get',
    params
  })
}

export function getQrcode(params) {
  return request({
    url: '/cloudcut-api/publish/publish-qrcodeById',
    method: 'get',
    params
  })
}
export function getMusic(params) {
  return request({
    url: '/cloudcut-api/publish/music-list',
    method: 'get',
    params
  })
}
export function getRecordList(params) {
  return request({
    url: '/cloudcut-api/publish/list',
    method: 'get',
    params
  })
}
export function delRecord(params) {
  return request({
    url: '/cloudcut-api/publish/delete',
    method: 'delete',
    params
  })
}

